export function mobileRule(value) {
    if (!/^((0\d{2,3}-\d{7,8})|(1[356784]\d{9}))$/.test(value)) {
        return true;
    } else {
        return false;
    }
}
export function emailRule(value) {
    // eslint-disable-next-line no-useless-escape
    var reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
    if (!reg.test(value)) {
        return true;
    } else {
        return false;
    }
}